package org.dreamwork.jasmine2.web.html;

import org.dreamwork.jasmine2.events.EventException;

import java.io.PrintWriter;
import java.io.IOException;

/**
 * Created by IntelliJ IDEA.
 * User: seth
 * Date: 2009-10-30
 * Time: 11:03:52
 */
public class ClientScriptControl extends GenericHtmlControl {
    public ClientScriptControl () {
        super ("script");
    }

    @Override
    public void render (PrintWriter writer) throws IOException, EventException {
        beginTag (writer);
        writer.write (text.toString ());
        endTag (writer);
    }
}